package com.zahb.qadx.ui.activity;

import android.os.Bundle;

import com.zahb.qadx.R;
import com.zahb.qadx.base.BaseActivity;
import com.zahb.qadx.ui.fragment.CreateChoiceExamFragment2;
import com.zahb.qadx.util.ActivityManager;

public class CreateChoiceExamActivity2 extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        ActivityManager.getInstance().addActivity(ActivityManager.KEY_CREATE_CHOICE_EXAM, this);
        super.onCreate(savedInstanceState);
        setTitleText("抽考考试");
        CreateChoiceExamFragment2 fragment = CreateChoiceExamFragment2.newInstance(getIntent().getStringExtra("json"), 1);
        getSupportFragmentManager().beginTransaction()
                .add(R.id.container, fragment, "CreateChoiceExamFragment2")
                .commitAllowingStateLoss();
    }

    @Override
    protected void onDestroy() {
        ActivityManager.getInstance().removeActivity(ActivityManager.KEY_CREATE_CHOICE_EXAM, this);
        super.onDestroy();
    }

    @Override
    protected int getLayout() {
        return 0;
    }

    @Override
    protected void initViews() {
    }

    @Override
    protected int getTitleStringRes() {
        return R.string.create_choice_exam;
    }
}
